﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestApplication
{
	public abstract class TimedObjectBase
	{

		#region Events

		public event EventHandler<TimedEventArgs> Complete;

		protected virtual void OnComplete(TimedEventArgs e)
		{
			if (this.Complete != null)
				this.Complete(this, e);
		}

		#endregion

	}

	public class TimedEventArgs : EventArgs
	{
		public TimedEventArgs()
		{
		}

		public TimedEventArgs(string text, long totalMilliseconds)
		{
			this.Text = text;
			this.TotalMilliseconds = totalMilliseconds;
		}

		public long TotalMilliseconds { get; set; }
		public string Text { get; set; }
	}
}